package net.wenku8.reader

import androidx.test.ext.junit.runners.AndroidJUnit4
import net.wenku8.reader.api.xmlToJson
import org.junit.Test
import org.junit.runner.RunWith


/**
 * Instrumented test, which will execute on an Android device.
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
    @Test
    fun useAppContext() {
        val xml = """
            <?xml version="1.0" encoding="UTF-8"?>
            <person id="123">
                <name>张三</name>
                <age>30</age>
                <emails>
                    <email>zhangsan@example.com</email>
                    <email>zs@work.com</email>
                </emails>
                <active>true</active>
            </person>
            
            """.trimIndent()
        println(xmlToJson(xml));
    }
}